using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AnswerAudio : MonoBehaviour
{

    private AudioSource player;

    public AudioClip bingo, wrong;

    public void playAudio(bool answer)
    {
        if (answer)
        {
            player.PlayOneShot(bingo);
        } else
        {
            player.PlayOneShot(wrong);
        }
    }

    // Start is called before the first frame update
    void Start()
    {
        player = this.GetComponent<AudioSource>();
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
